[XEND] Remove usage of set() in XendMonitor as it is a py2.4+ feature
authorAlastair Tse <atse@xensource.com>
Thu, 25 Jan 2007 10:29:33 +0000 (10:29 +0000)
committerAlastair Tse <atse@xensource.com>
Thu, 25 Jan 2007 10:29:33 +0000 (10:29 +0000)
Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendMonitor.py

index 855cff216c68e57dc7e45cb1db442c86eac38014..7a3046c3c390e7c9e0de9850542c1d840bc9100f 100644 (file)
@@ -220,11 +220,11 @@ class XendMonitor(threading.Thread):
         while True:
             self.lock.acquire()
             try:
-                active_domids = set()
+                active_domids = []
                 # Calculate utilisation for VCPUs
                 
                 for domid, cputimes in self._get_cpu_stats().items():
-                    active_domids.add(domid)
+                    active_domids.append(domid)
                     if domid not in self._domain_vcpus:
                         # if not initialised, save current stats
                         # and skip utilisation calculation